package lovo01.homework02;

/**
 * 商户
 */
public class Merchants {
    public String name;
    public int age;
    public Merchants(){}
    public Merchants(String name,int age){
        this.name = name;
        this.age = age;
    }
    public void pay(Law law,Revenue revenue){
        System.out.println("姓名为" + this.name + "年龄"
                + this.age + "的商户，向" + revenue.name
                + "缴纳" + law.name + law.tax + "元");
    }
}
